<?php
// +----------------------------------------------------------------------
// | ManniuCMS
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2016 http://manniuyun.com All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: heitao <cms@manniuyun.com>
// +----------------------------------------------------------------------

namespace app\mall\validate;

use think\Validate;

class MallSpecGroups extends Validate{

    protected $rule = [
        'name' 			=> ['require','token'],
        'spec_catid' 	=> ['require','number']
    ];

    protected $message  = [
        'name.require' 			=> '规格组名称必填',
        'spec_catid.require' 	=> '规格分类必选',
        'spec_catid.number' 	=> '规格分类值必须是数字'
    ];
}